package com.gxy.learn.design.principle.liskov_substitution_principle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 正方形类
 * @author: gaoxueyong
 * @Date: 2022/11/6 13:00
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Square implements Quadrilateral{

    private double side;

    @Override
    public double getLength() {
        return side;
    }

    @Override
    public double getWith() {
        return side;
    }
}
